const routes = [
    {
      path: '/detail/:id',
      name: 'detail',
      meta:[ '详情页'],
      component: () => import('../views/detail.vue')
    },
    {
      path: '/collection',
      name: 'collection',
      component: () => import('../views/collection.vue')
    },
    {
      path: '/landing',
      name: 'landing',
      component: () => import('../views/landing.vue'),

    },
    {
      path: '/enroll',
      name: 'enroll',
      component: () => import('../views/enroll.vue')
    },
    {
      path: '/down',
      name: 'down',
      component: () => import('../views/down.vue'),
      children:[
        {
          path: '/down/shouye',
          name: 'shouye',
          component: () => import('../views/index/shouye.vue')
        },
        {
          path: '/down/bigbang',
          name: 'bigbang',
          component: () => import('../views/index/bigbang.vue')
        },
        {
          path: '/down/dingdan',
          name: 'dingdan',
          component: () => import('../views/index/dingdan.vue')
        },
        {
          path: '/down/my',
          name: 'my',
          component: () => import('../views/index/my.vue')
        },
        {
          path:'/',
          redirect:'/down/shouye',
          component:()=>import('../views/index/shouye.vue')
        }

      ]
    },

    {
      path:'*',
      name:'404',
      component:()=>import('../views/404view.vue')
    },
    {
      path:'/',
      redirect:'/down',
      component:()=>import('../views/down.vue')
    }
]
    

export default routes;